package com.hitqz.robot.api.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测对象
 */
@TableName(value = "patrol_object")
public class PatrolObject {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @NotNull(message = "巡检类型id不能为空")
    private Long patrolCheckTypeId;

    private String name;

    private String unit;
    @NotNull(message = "是否换算不能为空")
    private Integer isConvert;

    private String enumResult;

    private String enumConvert;

    private String floatConvert;
    // 小数点后有几位
    private Integer afterPointCountConvert;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPatrolCheckTypeId() {
        return patrolCheckTypeId;
    }

    public void setPatrolCheckTypeId(Long patrolCheckTypeId) {
        this.patrolCheckTypeId = patrolCheckTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getIsConvert() {
        return isConvert;
    }

    public void setIsConvert(Integer isConvert) {
        this.isConvert = isConvert;
    }

    public String getEnumResult() {
        return enumResult;
    }

    public void setEnumResult(String enumResult) {
        this.enumResult = enumResult;
    }

    public String getEnumConvert() {
        return enumConvert;
    }

    public void setEnumConvert(String enumConvert) {
        this.enumConvert = enumConvert;
    }

    public String getFloatConvert() {
        return floatConvert;
    }

    public void setFloatConvert(String floatConvert) {
        this.floatConvert = floatConvert;
    }

    public Integer getAfterPointCountConvert() {
        return afterPointCountConvert;
    }

    public void setAfterPointCountConvert(Integer afterPointCountConvert) {
        this.afterPointCountConvert = afterPointCountConvert;
    }

    @Override
    public String toString() {
        return "PatrolObject{" +
                "id=" + id +
                ", patrolCheckTypeId=" + patrolCheckTypeId +
                ", name='" + name + '\'' +
                ", unit='" + unit + '\'' +
                ", isConvert=" + isConvert +
                ", enumResult='" + enumResult + '\'' +
                ", enumConvert='" + enumConvert + '\'' +
                ", floatConvert='" + floatConvert + '\'' +
                '}';
    }
}
